var app = getApp(),
  $ = require("../../utils/httpHelper.js")
var wxParse = require("../../wxParse/wxParse.js")
Page({
  data: {
    userInfo: {},
    size:['1','2','3','4','5']
  },
  onShareAppMessage: function (res) {
    app.shareApp(res)
  },
  onLoad: function (options) {
    console.log(options)
    if (options.info == 'member'){
      //来自会员卡
      wx.setNavigationBarTitle({
        title: '会员卡详情',
      })
      $.httpPost("about_card", { rd_session: wx.getStorageSync('rd_session')}, (data, err) => {
        wxParse.wxParse("about", "html", data.data.info.content, this)
      })
    } else if (options.info == 'jf'){
      //来自积分
      $.httpPost("about_jifen", { rd_session: wx.getStorageSync('rd_session') }, (data, err) => {
        wxParse.wxParse("about", "html", data.data.info.content, this)
      })
      
    }
    
    
    
  },
  
  
});